<?php $this->load->view('layout/header'); ?>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo b_url('wechat/remsg')?>" method="post">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                            <tr class="table_query_row">
                                <td style="width: 15%" align="right">消息方式：</td>
                                <td><input name="MsgReplyWay" type="text" id="MsgReplyWay" /></td>
                                <td style="width: 15%" align="right">消息类型：</td>
                                <td><input name="MsgType" type="text" id="MsgType" /></td>
                            </tr>
                            <tr class="table_query_btn">
                                <td align="right" style="width: 15%"></td>
                                <td>
                                    <input type="submit" name="btnQuery" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;SysLimit.aspx&quot;, false, false))" id="btnQuery" />
                                    <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                                </td>
                                <td align="right" style="width: 15%"></td>
                                <td></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo b_url('wechat/remsg_add')?>">添加微信消息回复</a>
                    <a onclick="javascript:return checkEdit(this);" name="weixinMsgReplyID" href="javascript:;)" src="<?php echo b_url('wechat/remsg_add/');?>">修改微信消息回复</a>
                    <a onclick="javascript:return checkDel(this);" name="weixinMsgReplyID" href="javascript:;)" src="<?php echo b_url('wechat/delete_info/remsg/weixinMsgReplyID/weixinmsgreply/')?>">删除微信消息回复</a>
                    <a href="javascript:SearchDialog()">查询微信消息回复</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'weixinMsgReplyID')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=SysLimitID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    自动编号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    消息方式
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    Key值
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    消息类型
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    文本消息内容
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    创建人
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    创建时间
                </td>
            </tr>
            <?php foreach($info as $k=>$v) : ?>
                <tr class="table_list_row_normal">
                    <td style="width: 2%">
                        <input name="weixinMsgReplyID" type="checkbox"  value="<?php echo $v['weixinMsgReplyID']?>" />
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['weixinMsgReplyID']?>
                    </td>
                    <td style="width: 10%">
                        <?php
                            if($v['MsgReplyWay'] == 1){
                                echo '订阅';
                            }else if($v['MsgReplyWay'] == 2){
                                echo '自动回复';
                            }else if($v['MsgReplyWay'] == 3){
                                echo '菜单Click';
                            }else if($v['MsgReplyWay'] == 5){
                                echo '群发消息';
                            }
                        ?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['KeyValue']?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['MsgType']?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['TxtContent']?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['adminname']?>
                    </td>
                    <td style="width: 10%">
                        <?php echo $v['CreateTime']?>
                    </td>
                </tr>
            <?php endforeach ; ?>
        </table>
        <!--列表结束-->
        <!--分页开始-->
        <?php $pagination->show();?>
        <!--分页结束-->
    </div>
    <script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>